package com.me.bbs.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.me.bbs.dto.BanDTO;
import com.me.bbs.entity.Ban;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lm
 * @since 2023-01-29
 */
public interface IBanService extends IService<Ban> {

    Page<BanDTO> searchUser(Long forumId, String q, Long current, Long size);

    Page<BanDTO> getBanList(Long forumId, Long current, Long size);

    void banUser(Long uid, Integer durationCode, Long forumId, String reason);

}
